{extend name="public/base"}

{block name="title"}就行天下-约酒交友{/block}

{block name="style"}
<link rel="stylesheet" href="__STATIC__/home/css/personal.css" />
{/block}

{block name="main"}
<div class="pageControl bg-f5">
    <div class="main-top"></div>
    <div class="msui_nav msui_navTop">
        <a class="msui_navTop-back" href="{:url('member/index')}"><i class="micon-back"></i></a>
        <h1 class="msui_navTop-title">活动</h1>
        <a href="" class="msui_navTop-right msui_navTop-cnav"><i class="micon-cnav"></i></a>
    </div>
    <div class="msui_menu_fixed msui_menu">
        <div class="msui_menu-mask">
            <ul class="msui_menu-bd js-menu">
                <li class="msui_menu-li" data-tab="0"><a class="msui_menu-list fs08 cl-6666" data-type="1" href="#hash1_" data-hash="#hash1_">申请中</a></li>
                <li class="msui_menu-li" data-tab="1"><a class="msui_menu-list fs08 cl-6666" data-type="2" href="#hash2_" data-hash="#hash2_">进行中</a></li>
                <li class="msui_menu-li" data-tab="2"><a class="msui_menu-list fs08 cl-6666" data-type="3" href="#hash3_" data-hash="#hash3_">参与过</a></li>
                <li class="msui_menu-li" data-tab="3"><a class="msui_menu-list fs08 cl-6666" data-type="4" href="#hash4_" data-hash="#hash4_">我的发起</a></li>
                <!-- 用于动画的层 -->
                <div id="line" class="weui-baseline"></div>
            </ul>
        </div>
    </div>
    <div class="mtab_list activities" style="position: relative;">
        <div class="js-list active">

        </div>
    </div>
</div>
{/block}

{block name="javascript"}
<script>
    SCOPE.obj = {
        action : 'activity',
        is_more : true,
        page : 1,
        url : '{:url("get_activity_list")}',
        hash : '4',
        container : '.js-list',
        data : {
            type : 1
        }
    };

    $(function () {
        $('.login-btn1').click(function () {
            $(this).attr('disabled','disabled');
        });

        $(window).scroll( function() {
            if (($(document).height() - $(this).scrollTop() - $(this).height()<50) && SCOPE.obj.is_more){
                alert(123);
                get_list_by_scope_obj();
            }
        });
    })
</script>
{/block}